package org.ruoyi.interview.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ruoyi.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import org.ruoyi.interview.domain.vo.InterviewQuestionFavoriteVo;

import java.io.Serializable;

/**
 * 面试题收藏对象 interview_question_favorite
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("interview_question_favorite")
@AutoMapper(target = InterviewQuestionFavoriteVo.class)
public class InterviewQuestionFavorite extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Long favoriteId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 面试题目ID
     */
    private Long questionId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;

    /**
     * 备注
     */
    private String remark;
}